import App from './App'
import filters from '@/utils/filters.js'
import navbar from '@/component/NavBar.vue'
import tabbar from '@/component/TabBar.vue'

import Vue from 'vue'

Vue.config.productionTip = false

// 添加全局filter
Object.keys(filters).map(key => {
	Vue.filter(key, filters[key]);
})
// 注册全局组件
Vue.component('nav-bar', navbar);
Vue.component('tab-bar', tabbar);

App.mpType = 'app'

const app = new Vue({
	...App
})

app.$mount()
